#pragma once

class FontBatch
{
	ID3DXSprite* mSprite;
public:
	FontBatch();
	void beginBatch();
	void endBatch();
	void drawTextA(CFont& font, ui32 x, ui32 y, ui32 w, ui32 h, std::string szText, DWORD dwColor = 0xFFFFFFFF, ui32 format = 0);
	void drawTextW(CFont& font, ui32 x, ui32 y, ui32 w, ui32 h, std::wstring szText, DWORD dwColor = 0xFFFFFFFF, ui32 format = 0);
	void onDeviceLost();
	void onDeviceReset();
};